// Fill out your copyright notice in the Description page of Project Settings.

#include "WorldJunctionGroupParts.h"
#include "WorldEntityReferencing.h"

WORLD_ENTITY_META_DEFINE(FWorldJunctionReference, FWorldEntityPart);

FWorldJunctionReference::FWorldJunctionReference()
	: Super()
	, Junction(this)
{}

FWorldJunctionReference::FWorldJunctionReference(FWorldEntityPart* parent, const pugi::xml_node& elem)
	: Super(parent, elem)
	, Junction(this, elem, "junction")
{}

FWorldJunctionReference::~FWorldJunctionReference()
{}

void FWorldJunctionReference::Resolve(FWorldEntityReferencing& referencing)
{
	Super::Resolve(referencing);
	referencing
		.Resolve(Junction);
}
